﻿@model NextAction.Domain.Entities.GtdProject

@{
    ViewBag.Title = "EditGtdProject";
}

<h2>Edit Project</h2>

@using (Html.BeginForm("Edit", "GtdProject"))
{
    
    @Html.ValidationSummary()
    @Html.Hidden("ProjectID", Model.ProjectID)      
    @Html.Hidden("UserID", Model.UserID) 
     
    <div>Name: @Html.EditorFor(x => x.Name)</div>
    <div>Description: @Html.EditorFor(x => x.Description)</div>
    <div>Priority: @Html.EditorFor(x => x.Priority)</div>
    
    <h3>Options</h3>
    <label>
        @Html.EditorFor(x => x.IsCompleted)
        Is completed
    </label>
    
    <input type="submit" value="Save" />
    @Html.ActionLink("Cancel and return to List", "Index", "Desk");
}

